æòÅⁿâoâiü[

File copy() Method


    File(path).copy(target)

Description

    The close() method copies the file to the given location.

    You can supply an URI path name as well as another File object. If there is a file at the target location, it is overwritten.

    The method returns true if the copy was successful, false otherwise. The method resolves any aliases to find the source file.

Parameters

    target

    File object or String specifying the target location

Returns

    Boolean.